<template>
  <chn-pay-sel :all-select-list="paychnList" v-model="Ranges" />

</template>

<script>
import ChnPaySel from './ChnPaySel'
import { getPayChn } from '@/api/table'
export default {
  name: 'PayChannel',
  components: {
    ChnPaySel
  },
  data() {
    return {
      Ranges: [],
      paychnList: {}
    }
  },
  watch: {
    Ranges() {
      this.$emit('input', this.Ranges)
    }
  },
  created() {
    this.getSelect()
  },
  methods: {
    getSelect() {
      getPayChn({}).then(res => {
        this.paychnList = res.data.pay_type_list
      })
    }
  }
}
</script>
